package com.javasm.sys.dao;

import com.javasm.sys.SysTimingTask;
import java.util.List;

/**
 * @Author: WangZhuang
 * @ClassName: TaskDao
 * @Description:
 * @Date: 2022/9/23 10:50
 * Version: 0.1
 * Since: JDK11
 */
public interface TaskDao {

    List<SysTimingTask> getRunningTasks();

    boolean stopTask(String taskid);

    boolean startTask(String taskid);

    SysTimingTask getById(String taskid);

    List<SysTimingTask> getTasks(SysTimingTask sysTimingTask);

    Integer updateTaskById(SysTimingTask sysTimingTask);

    Integer delTaskById(String taskId);

    Integer addTask(SysTimingTask sysTimingTask);
}
